<form action="shop_pay.manage.php" method="get" name="form_search" id="form_search" onsubmit="ajax_search_list();return false;">
<input type="hidden" name="action" id="action" value="shop_list" />
<table width="680" class="from_table">
	<tr>
		<th width="350"><tpl> $langSysShopPayShopAvailabilityTime </tpl>：</th>
		<td align="left"><input type="text" name="expire_date" id="expire_date" style="border:solid 1px #B0DF82;cursor:pointer; width:100px; background:url(../js/calendar/blue/cal_btn.gif) no-repeat right; height:18px; padding-right:19px;" readonly="readonly"  value="<tpl> $condition.expire_date </tpl>"/></td>
		<th width="350"><tpl> $langSysShopPayProductLastNumber </tpl>：</th>
		<td colspan="2" align="left"><input type="text" name="last_p_num" class="txtinput_short" id="last_p_num" size="20" value="<tpl> $condition.last_p_num </tpl>"/></td>
	</tr>
	<tr>
		<th width="350"><tpl> $langSysShopPayShopName </tpl>：</th>
		<td align="left"><input type="text" name="shop_name" class="txtinput_short" id="shop_name" size="20" value="<tpl> $condition.shop_name </tpl>"/></td>
		<th width="350"><tpl> $langSysShopPayShopMember </tpl>：</th>
		<td colspan="2" align="left"><input type="text" name="shop_member_name" class="txtinput_short" id="shop_member_name" size="20" value="<tpl> $condition.shop_member_name </tpl>"/></td>
	</tr>
	<tr>
		<th width="350"><tpl> $langSysShopPayTimeIsNotExpire </tpl>：<input type="checkbox" <tpl> if $condition.if_expire eq '1' </tpl>checked="checked"<tpl> /if </tpl> name="if_expire" id="if_expire" value="1" /></th>
		<th width="350"><tpl> $langSysShopPayProductNumberNotZero </tpl>：<input type="checkbox" <tpl> if $condition.if_p_num_zero eq '1' </tpl>checked="checked"<tpl> /if </tpl> name="if_p_num_zero" id="if_p_num_zero" value="1" /></th>
		<td align="left"></td>	
		<td align="left"><span class="btn_left">
		<input type="submit" value="<tpl> $langSysShopPaySearch </tpl>"  class="btn_submit"/></span></td>
	</tr>
	<tr>
		<td colspan="2" align="center"></td>
		<td></td>	
		<td></td>
	</tr>
</table>
</form>
<form action="predeposit.manage.php" id="form1" name="form1" method="get" style="padding-bottom:20px">
<input type="hidden" name="action" id="action" value="shop_list" />
<table  class="from_table2_one">
<thead>	
	<tr class="area_ajax_list_title">
		<th class="pd-left" width="200"><tpl> $langSysShopPayShopName </tpl></th>
		<th width="200"><tpl> $langSysShopPayShopMember </tpl></th>
		<th width="200"><tpl> $langSysShopPayShopAvailabilityTime </tpl></th>
		<th width="200"><tpl> $langSysShopPayProductLastNumber </tpl></th>
	</tr>
</thead>
	<tpl> if $shop_array[0].shop_id neq'' </tpl>
		<tpl> section name=loop loop=$shop_array </tpl>
		<tr>
		  <td class="pd-left" align="left"><tpl> $shop_array[loop].shop_name </tpl></td>
			<td align="left"><tpl> $shop_array[loop].login_name </tpl></td>
			<td align="left"><tpl> $shop_array[loop].shop_availability_time </tpl></td>
			<td align="left"><tpl> $shop_array[loop].last_p_num </tpl></td>
		</tr>
		<tpl> /section </tpl>
		
	<tpl> else  </tpl>
		<tr>
		<td class="pd-left" colspan="10" align="center"><tpl> $langCNull </tpl></td>
		</tr>
	<tpl> /if  </tpl>
</table>
<tpl> if $shop_array[0].shop_id neq'' </tpl>
<div class="table-5-bottom"><div class="btn_marginright">
			<tpl>$page_list</tpl></div></div>
			<tpl> /if  </tpl>
</form>
<script>
$(document).ready(function(){
	$(function(){
	   $("#expire_date").datepicker();
	})
})

function ajax_search_list(){
	//取表单参数
	var queryString=$("#form_search").formSerialize();
	$.ajax({
		url: "shop_pay.manage.php",
		data: queryString,
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}

</script>